package routers

import (
	"WORKSPACE/middleWare"
	"github.com/gin-gonic/gin"
)

func InitRouter() *gin.Engine {
	r := gin.New()
	r.Use(gin.Logger())
	r.Use(gin.Recovery())
	r.Use(middleWare.Cors())
	g := r.Group("/WORKSPACE")

	sysNoCheckRoleRouter(g)

	return r
}

func sysNoCheckRoleRouter(r *gin.RouterGroup) {
	r = r.Group("/apis")
	//consumerRouter(r)
	//goodsRouter(r)
	//ordersRouter(r)
	allwageRouter(r)
	employesswageRouter(r)
	departmentwageRouter(r)
	wdataRouter(r)
	overtimeRouter(r)
	employessRouter(r)
	departmentRouter(r)
	attendanceRouter(r)
}

func wdataRouter(r *gin.RouterGroup) {
	panic("unimplemented")
}